{template 'common/header'}
{template 'web/AJcommonCssAndJs'}

{if $pagediv=='list'}
<ul class="nav nav-tabs">
    <li role="presentation" class="active"><a href="#">拼车信息</a></li>
</ul>

<div style="padding-top:5px;"></div>


<form action="" class="form-horizontal form" method="post" autocomplete="off">

    <input type="hidden" name="token" value="{$_W['token']}"/>

    <input type="hidden" name="op" value="list">


    <div class="panel panel-default">

        <div class="panel-heading">

            <input type="checkbox" name=""
                   onclick="var ck = this.checked;$(':checkbox').each(function(){this.checked = ck});">选择

            <input type="submit" name="delete_selectd" class="btn btn-primary" value="选中删除">


        </div>


        <div class="panel-body">


            <table class="table table-hover tb_center">

                <thead class="navbar-inner">

                <tr>

                    <th style="width:60px;">删?</th>

                    <!-- <th style="width:60px;">ID</th>		 -->


                    <th style="width:160px;">

                        <div>用户</div>


                    </th>

                    <th style="width:80px;">分类</th>


                    <th style="width:140px;">拼车类型</th>

                    <th style="width:140px;">起点</th>

                    <th style="width:140px;">终点</th>

                    <th style="width:140px;">人数</th>
                    <th style="width:140px;">感谢费</th>

                    <th style="width:140px;">日期</th>

                    <th style="width:140px;">发布日期</th>
                    <th style="width:140px;">出行要求</th>
                    <th style="width:140px;">手机号码</th>
                    <th style="width:140px;">补充说明</th>


                </tr>

                </thead>
                <tbody>

                {if $list}

                {loop $list $index $row}

                <tr>

                    <!-- <td>{if $row['thumb']}<a href="{php echo tomedia($row['thumb']);}" target="_blank"><img src="{php echo tomedia($row['thumb']);}" style="height:40px;width:40px;"></a>{else}<i class="c_gray">无图</i>{/if}</td> -->

                    <td><input type="checkbox" name="ids[]" value="{$row['id']}" class="">{$row['id']}</td>

                    <!-- <td class="row-first">{$row['id']}</td> -->


        </div>


        </td>

        </td>
        <td>{$row['name']}</td>
        <td>{$row['type']}</td>
        <td>{$row['pc_type']}</td>
        <td>{$row['address_start']}</td>
        <td>{$row['address_end']}</td>
        <td>{$row['num']}</td>
        <td>{$row['ganxiefei']}</td>
        <td>{$row['time']}</td>
        <td>{$row['time_now']}</td>
        <td>{$row['yaoqiu']}</td>
        <td>{$row['tel']}</td>
        <td>{$row['buchong']}</td>


        <td align="center">

            <div class="btn-group">


                <a href="{php echo $this->createWebUrl('pinche', array('id'=>$row['id'],'op'=>'del'))}" title="删除"
                   class='btn btn-default btn-sm' onclick="return confirm('确定要删除吗?')"><i class="fa fa-remove"></i>删除</a>

            </div>

        </td>

        </tr>

        {/loop}

        {else}

        <tr>

            <td colspan="5" align='center'>暂无数据</td>

        </tr>

        {/if}
        </tbody>
        </table>
        {$result['pager']}
    </div>

    {/if}
    {template 'common/footer'}